package kr.saeildamil.androidstudy.ch16;

import kr.saeildamil.androiddforstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch16Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch16_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch16_btn01:
			intent.setClass(this, AlertDlg.class);
			break;
		case R.id.ch16_btn02:
			intent.setClass(this, SelectDialog01.class);
			break;
		case R.id.ch16_btn03:
			intent.setClass(this, SelectDialog02.class);
			break;
		case R.id.ch16_btn04:
			intent.setClass(this, SelectDialog03.class);
			break;
		case R.id.ch16_btn05:
			intent.setClass(this, OrderDialog.class);
			break;
		case R.id.ch16_btn06:
			intent.setClass(this, Ch16_Popup.class);
			break;
		}
		startActivity(intent);
	}
}
